﻿for(i=0;i<videoArr.length;i++) {
	tileObjsArr[i]=new Object()	
	tileObjsArr[i].x=tile_spacing
	tileObjsArr[i].y=tile_top	
	tileObjsArr[i].z=tile_z
	tileObjsArr[i].width=tile_img_width
	tileObjsArr[i].height=tile_img_height
	tileObjsArr[i].scale=tile_scale
	tileObjsArr[i].center_x=tile_img_width/2
	tileObjsArr[i].center_y=tile_img_height/2	
    tile_spacing += tile_img_width + 20
}

tile_spacing = -145;

for(i=0;i<villaArr.length;i++) {
	stripObjsArr[i]=new Object()	
	stripObjsArr[i].x=tile_spacing 
	stripObjsArr[i].y=0
	stripObjsArr[i].z=0
	stripObjsArr[i].width=150
	stripObjsArr[i].height=100
	stripObjsArr[i].scale=.9
	stripObjsArr[i].center_x=75
	stripObjsArr[i].center_y=50	
    tile_spacing += 170
}

tile_spacing = -145;

for(i=0;i<boatArr.length;i++) {
	boatObjsArr[i]=new Object()	
	boatObjsArr[i].x=tile_spacing 
	boatObjsArr[i].y=0
	boatObjsArr[i].z=0
	boatObjsArr[i].width=150
	boatObjsArr[i].height=100
	boatObjsArr[i].scale=.9
	boatObjsArr[i].center_x=75
	boatObjsArr[i].center_y=50	
    tile_spacing += 170
}

tileHolder_width=tileObjsArr[videoArr.length-1].x + tileObjsArr[videoArr.length-1].width

function buildImages(s) {
	var tileHolder_str = '<Canvas Name="tilesHolder" Canvas.Left="'+(stage_width/2-tileHolder_width/2)+'" Canvas.Top="270">';	
	for(i=0;i<videoArr.length;i++) {
		tileHolder_left=tileObjsArr[i].x
		tileHolder_top=tileObjsArr[i].y
		tile_z=tileObjsArr[i].z
		tileHolderReflection_top=(tileObjsArr[i].height*2)
		tile_img_width=tileObjsArr[i].width
		tile_img_height=tileObjsArr[i].height
		scale_x=scale_y=tileObjsArr[i].scale
		center_x=tileObjsArr[i].center_x
		center_y=tileObjsArr[i].center_y
		tileHolder_str += '<Canvas Cursor="Hand" Name="tileHolder_'+i+'" Canvas.Left="'+tileHolder_left+'" Canvas.Top="'+tileHolder_top+'">'
		tileHolder_str += '<Canvas Name="imgHolder_'+i+'"  >'
		tileHolder_str += '<Image Name="img_'+i+'" Stretch="Fill" Width="'+tile_img_width+'" Height="'+tile_img_height+'" MouseEnter="tileEnter" MouseLeave="tileLeave" MouseLeftButtonDown="tilePress" Source="" />'
		tileHolder_str += '</Canvas>'
		tileHolder_str += '<Canvas Cursor="Hand" Name="imgHolderOverlay_'+i+'" Width="250" Height="250" Canvas.Left="0" Canvas.Top="'+tileHolder_top+'" Background="#CC222222" Opacity="0" IsHitTestVisible="false">'
		tileHolder_str += '<TextBlock FontSize="18" Name="textBlock_'+i+'" Foreground="#FFAAAAAA" TextWrapping="Wrap" Width="240" Height="240" Canvas.Left="5" Canvas.Top="5">' 
		tileHolder_str += getText(i) 
		tileHolder_str += '</TextBlock>'
		tileHolder_str += '</Canvas>'
		tileHolder_str += '<Canvas.RenderTransform><ScaleTransform Name="st_'+i+'" ScaleX="'+scale_x+'" ScaleY="'+scale_y+'" CenterX="'+center_x+'" CenterY="'+center_y+'"/></Canvas.RenderTransform>'
		tileHolder_str += '<Canvas.Resources><Storyboard Name="textAnim_'+i+'"><DoubleAnimation Storyboard.TargetName="imgHolderOverlay_'+i+'" Storyboard.TargetProperty="Opacity" From="0.0" To="1.0" Duration="0:0:1" /></Storyboard></Canvas.Resources>'
		tileHolder_str += '</Canvas>'	
		tileObjsArr[i].parent="tileHolder_"+i
		tileObjsArr[i].scaleTransform="st_"+i
	}
	tileHolder_str += '</Canvas>';	           
	tileHolderTag=s.getHost().content.createFromXaml(tileHolder_str)
	main.children.add(tileHolderTag)
    for(i=0;i<videoArr.length;i++) {
        s.findName("img_"+i).setSource(downloader_main,videoArr[i]+".jpg")
        var myTextBlock = s.findName("textBlock_"+i);
        myTextBlock.setFontSource(downloader_main);
        myTextBlock.fontFamily = "Eurostile";
    }
}

function buildPage(p,s){
    pageNumber=p;
    rootPage=true;
    pageAnimOut(s);
}

function setFP(pn,s){
    switch(pn)
    {
    case 2:
        s.findName("conciergeimg_0").setSource(downloader_preload,"concierge_entertainment.jpg")
        s.findName("conciergeimg_1").setSource(downloader_preload,"concierge_lifestyle.jpg")
        s.findName("conciergeimg_2").setSource(downloader_preload,"concierge_service.jpg")
        s.findName("conciergeimg_3").setSource(downloader_preload,"concierge_transportation.jpg")
        s.findName("conciergeMainPic").setSource(downloader_preload,"concierge_t.jpg")
        for(i=0;i<4;i++) {
            var myTextBlock = s.findName("conciergeMenu"+i);
            myTextBlock.setFontSource(downloader_main);
            myTextBlock.fontFamily = "Eurostile";
        }
        break;
    case 3:
        s.findName("contactMainPic").setSource(downloader_preload,"contact.jpg")
        break;    
    case 33:
        for(i=0;i<villaArr.length;i++) {
            s.findName("stripimg_"+i).setSource(downloader_villas,villaArr[i]+".jpg")
        }
        s.findName("Prev").setSource(downloader_preload,"prev.png")
        s.findName("Next").setSource(downloader_preload,"next.png")
        s.findName("villaPictures0").setSource(downloader_main,"villas.jpg")
        s.findName("villaPictures1").setSource(downloader_preload,"villa_rental.jpg")
        break;
    case 44:
        s.findName("boatNewPic").setSource(downloader_preload,"charter_big.jpg")
        var myTextBlock = s.findName("boatPage");
        myTextBlock.setFontSource(downloader_main);
        myTextBlock.fontFamily = "Eurostile";
        setScroller(s,"boatPageTextContainer")
        break;
    }
}

function page2(){
    var pg_str
    pg_str =  '<Canvas>' 
    pg_str += '<Canvas Name="conciergeMenu" Opacity="1">'
	pg_str += '<Canvas Name="conciergemn_0" Cursor="Hand" MouseLeftButtonDown="changeConciergePage" Background="#FFD1D4D3" Width="500" Height="111" Canvas.Top="0" MouseEnter="conciergeMenuEnter" MouseLeave="conciergeMenuLeave">'
    pg_str += '<Image Name="conciergeimg_0" Canvas.Top="6" Canvas.Left="10" Source="" Width="100" Height="100"></Image>'
    pg_str += '<TextBlock Name="conciergeMenu0" FontSize="14" Canvas.Top="5" Canvas.Left="116" Width="380" Height="105" TextWrapping="Wrap">'
    pg_str += '<Run FontSize="24" FontFamily="Eurostile">Entertainment</Run><LineBreak/>'
    pg_str += 'The town of St Tropez and the surrounding area is alive with vibrant restaurants and bars for your pleasure. Allow our concierge to '
    pg_str += 'assist you with booking a table at some of the finest restaurants and nightclubs to ensure you don’t miss out on the best this area has to offer.'
    pg_str += '</TextBlock>'
    pg_str += '</Canvas>'
    pg_str += '<Canvas Name="conciergemn_1" Cursor="Hand" MouseLeftButtonDown="changeConciergePage" Background="#FFD1D4D3" Width="500" Height="111" Canvas.Top="113" MouseEnter="conciergeMenuEnter" MouseLeave="conciergeMenuLeave">'
    pg_str += '<Image Name="conciergeimg_1" Canvas.Top="6" Canvas.Left="10" Source="" Width="100" Height="100"></Image>'
    pg_str += '<TextBlock Name="conciergeMenu1" FontSize="14" Canvas.Top="5" Canvas.Left="116" Width="340" Height="105" TextWrapping="Wrap">'
    pg_str += '<Run FontSize="24" FontFamily="Eurostile">Lifestyle</Run><LineBreak/>'
    pg_str += 'Whether it’s a round or two of golf, a day at the races, maybe some time sailing, diving or skiing, or even taking time to '
    pg_str += 'admire the many beautiful islands and coves along the coast aboard a power boat, allow us to help you with your plans.'
    pg_str += '</TextBlock>'    
    pg_str += '</Canvas>'
    pg_str += '<Canvas Name="conciergemn_2" Cursor="Hand" MouseLeftButtonDown="changeConciergePage" Background="#FFD1D4D3" Width="500" Height="111" Canvas.Top="226" MouseEnter="conciergeMenuEnter" MouseLeave="conciergeMenuLeave">'
    pg_str += '<Image Name="conciergeimg_2" Canvas.Top="6" Canvas.Left="10" Source="" Width="100" Height="100"></Image>'
    pg_str += '<TextBlock Name="conciergeMenu2" FontSize="14" Canvas.Top="5" Canvas.Left="116" Width="340" Height="105" TextWrapping="Wrap">'
    pg_str += '<Run FontSize="24" FontFamily="Eurostile">Service</Run><LineBreak/>'
    pg_str += 'Our ultimate goal is to ensure all your needs are catered for. Our concierge can offer advice and make arrangements to ensure your '
    pg_str += 'stay is one hundred percent stress free.'
    pg_str += '</TextBlock>'    
    pg_str += '</Canvas>'
    pg_str += '<Canvas Name="conciergemn_3" Cursor="Hand" MouseLeftButtonDown="changeConciergePage" Background="#FFD1D4D3" Width="500" Height="111" Canvas.Top="339" MouseEnter="conciergeMenuEnter" MouseLeave="conciergeMenuLeave">'
    pg_str += '<Image Name="conciergeimg_3" Canvas.Top="6" Canvas.Left="10" Source="" Width="100" Height="100"></Image>'
    pg_str += '<TextBlock Name="conciergeMenu3" FontSize="14" Canvas.Top="5" Canvas.Left="116" Width="340" Height="105" TextWrapping="Wrap">'
    pg_str += '<Run FontSize="24" FontFamily="Eurostile">Transportation</Run><LineBreak/>'
    pg_str += 'Travel in style, at speed or both with an unbeatable choice of yachts, limousines and aircraft to take you to your destination.'
    pg_str += '</TextBlock>'    
    pg_str += '</Canvas>'
    pg_str += '<Image Name="conciergeMainPic" Opacity="1" Canvas.Top="0" Canvas.Left="505" Stretch="Fill" Source="" Width="500" Height="450"></Image>'
    pg_str += '<Image Name="conciergeNewPic" Opacity="0" Canvas.Top="0" Canvas.Left="505" Stretch="Fill" Source="" Width="500" Height="450"></Image>'
    pg_str += '</Canvas>'
    pg_str += '<Canvas Name="conciergePageContainer" Width="500" Height="450" Canvas.Top="0" Canvas.Left="0" Opacity="0" Visibility="Collapsed" Background="#FFD1D4D3" >'
    pg_str += '<TextBlock Name="boatPage"></TextBlock>'
    pg_str += '<Canvas.Clip><RectangleGeometry Rect="0, 0, 500, 450"/></Canvas.Clip>'
    pg_str += '</Canvas><TextBlock Name="back" Cursor="Hand" MouseEnter="backEnter" MouseLeave="backLeave" MouseLeftButtonDown="backPress" FontSize="18" '
    pg_str += 'FontFamily="Verdana" Canvas.Top="460" Opacity="1">Back...</TextBlock></Canvas>'
    return pg_str;
}

function page3(){
    var pg_str
    pg_str =  '<Canvas>' 
    pg_str += '<Canvas Name="contactMenu" Opacity="1">'
    pg_str += '<Canvas>'
	pg_str += '<Canvas Name="contactmn_0" Background="#FFFFFFFF" Width="500" Height="1050" Canvas.Top="0" >'
    pg_str += '<TextBlock Name="contentText" FontSize="14" Canvas.Top="5" Canvas.Left="5" Width="490" Height="440" TextWrapping="Wrap">'
    pg_str += '<Run FontSize="28">Contact Details</Run><LineBreak/>' 
    pg_str += 'Please contact us to discuss your requirements with a member of our staff. ' 
    pg_str += 'If you wish to use our callback service please click on the email address below and include your name, telephone number and a '
    pg_str += 'convenient time to call.<LineBreak/><LineBreak/>'
    pg_str += 'We look forward to being of service to you.<LineBreak/><LineBreak/>'
    pg_str += 'Email your requirements to <LineBreak/><LineBreak/>'
    pg_str += 'Address Details:<LineBreak/>'
    pg_str += 'Concique office in UK;'
    for(i=0;i<19;i++) {
        pg_str += '<LineBreak/>'    
    }
    pg_str += '</TextBlock><TextBlock Name="email" Cursor="Hand" MouseEnter="backEnter" MouseLeave="backLeave" MouseLeftButtonDown="sendMail" '
    pg_str += 'FontSize="14" FontFamily="Verdana" Canvas.Top="199.9" Canvas.Left="195" Opacity="1">carolina@concique.com</TextBlock>'
    
    //pg_str += '<TextBlock Name="contactForm" Cursor="Hand" MouseEnter="backEnter" MouseLeave="backLeave" MouseLeftButtonDown="showContact" '
    //pg_str += 'FontSize="14" FontFamily="Verdana" Canvas.Top="10" Canvas.Left="295" Opacity="1" Foreground="#FFCC0000">Click here to use our<LineBreak/>Contact Form</TextBlock>'
    
    pg_str += '<TextBlock Name="contactMenu2" FontSize="14" Canvas.Top="285" Canvas.Left="185" Width="490" TextWrapping="Wrap" IsHitTestVisible="False">'
	pg_str += 'Carolina Oleksy<LineBreak/>'
	pg_str += 'Operations Manager<LineBreak/>'    
    pg_str += 'Slapton Hill Farm<LineBreak/>'
    pg_str += 'Slapton<LineBreak/>'
    pg_str += 'Towcester<LineBreak/>'
    pg_str += 'Northants<LineBreak/>'
    pg_str += 'NN12 8QD<LineBreak/><LineBreak/>'
    pg_str += 'Mobile UK: + 44 (0)7843 270 648<LineBreak/>'
    pg_str += 'Mobile France: + 33 (0)6 77 88 68 75<LineBreak/>'
    pg_str += 'UK office Tel: +44 (0) 1327 860864<LineBreak/>'
    pg_str += '</TextBlock>'
    pg_str += '</Canvas>'
    pg_str += '<Canvas Name="myScroller1_Container" Canvas.Top="0" Canvas.Left="480"> '
    pg_str += '<Canvas Name="myScroller1_Up" MouseLeftButtonDown="scrollerArrowPress" MouseLeftButtonUp="scrollerArrowRelease"> '
    pg_str += '<Rectangle Fill="#777" Width="20" Height="20" /> '
    pg_str += '<Path Data="M 0,0 L8,8 -8,8z" Fill="#EEE" Canvas.Left="10" Canvas.Top="7" />'
    pg_str += '</Canvas>'
    pg_str += '<Canvas Name="myScroller1_Down" MouseLeftButtonDown="scrollerArrowPress" MouseLeftButtonUp="scrollerArrowRelease" Canvas.Top="431" > '
    pg_str += '<Rectangle Fill="#777" Width="20" Height="20" /> '
    pg_str += '<Path Data="M 0,0 L8,-8 -8,-8z" Fill="#EEE" Canvas.Left="10" Canvas.Top="14" />'
    pg_str += '</Canvas>'
    pg_str += '<Rectangle Name="myScroller1_TrackBar_Visual" Fill="#AAA" Height="409" Width="20" Canvas.Top="21" /> '
    pg_str += '<Rectangle Name="myScroller1_TrackBar" MouseLeftButtonDown="pressTrackBar" Fill="transparent" Height="409" Width="20" Canvas.Top="22" /> '
    pg_str += '<Rectangle Name="myScroller1_Scrubber" MouseLeftButtonDown="startDrag" MouseLeftButtonUp="endDrag" Fill="#000" Height="50" Width="18" Canvas.Top="22" Canvas.Left="1" /> '
    pg_str += '</Canvas><Canvas Canvas.Left="0" Canvas.Top="0" IsHitTestVisible="False"><Rectangle  Fill="#FFFFFFFF" Height="450" Width="480" /><Canvas.OpacityMask><LinearGradientBrush  StartPoint="0,0" EndPoint="0,1">'
    pg_str += '<GradientStop Offset="0.5" Color="#00000000" /><GradientStop Offset="1" Color="#FF000000"  /></LinearGradientBrush></Canvas.OpacityMask></Canvas><Canvas.Clip><RectangleGeometry Rect="0, 0, 500, 450"/></Canvas.Clip></Canvas>'
    pg_str += '<Rectangle Width="500" Height="450" Stroke="#FF636363"></Rectangle>'
    pg_str += '<Image Name="contactMainPic" Opacity="1" Canvas.Top="0" Canvas.Left="505" Source="" Stretch="Fill" Width="500" Height="450"></Image>'
    pg_str += '</Canvas>'
    pg_str += '<Canvas Name="contactPageContainer" Width="500" Height="450" Canvas.Top="0" Canvas.Left="0" Opacity="0" Visibility="Collapsed" Background="#FFFFF9D3" >'
    pg_str += '<TextBlock Name="contactPage"></TextBlock>'
    pg_str += '</Canvas><TextBlock Name="back" Cursor="Hand" MouseEnter="backEnter" MouseLeave="backLeave" MouseLeftButtonDown="backPress" FontSize="18" '
    pg_str += 'FontFamily="Verdana" Canvas.Top="460" Opacity="1">Back...</TextBlock></Canvas>'
    return pg_str;
}

function page33(){
    var topOfStrip = 420;
    var strip_str = '<Canvas Name="villaMainH" Canvas.Left="50" Canvas.Top="0"><Canvas>'
    strip_str += '<Canvas Name="villaContent" Width="500" Height="600" Background="#FFFFF9D3">'
    strip_str += '<TextBlock Name="contentText" FontSize="14" Canvas.Top="10" Canvas.Left="10" Width="440" Height="105" TextWrapping="Wrap">'
    strip_str += '<Run FontSize="28" FontFamily="Verdana">Villa Rentals</Run><LineBreak/>' 
    strip_str += 'At Concique we pride ourselves on offering the most exclusive luxury villas available in the St Tropez area. Decorated to the '
    strip_str += 'highest standards and with outstanding facilities we are able to provide the ultimate holiday experience whatever your '
    strip_str += 'requirements. Our selection of villas are in a number of locations in the St Tropez area – often hidden away in the most '
    strip_str += 'tranquil and private settings – they provide elite accommodation for the most discerning patrons. Please contact Concique with '
    strip_str += 'your requirements and we will assist you to find the ideal villa for your holiday.<LineBreak/><LineBreak/>'
    strip_str += 'Please feel free to email us at <LineBreak/>or telephone us on the following numbers:<LineBreak/><LineBreak/>'
    strip_str += 'Mobile UK: + 44 (0)7843 270 648<LineBreak/>Mobile France: + 33 (0)6 77 88 68 75<LineBreak/>UK office Tel: +44 (0) 1327 860864<LineBreak/>'
    strip_str += '<LineBreak/><LineBreak/><LineBreak/><LineBreak/>'
    strip_str += '</TextBlock><TextBlock Name="email" Cursor="Hand" MouseEnter="backEnter" MouseLeave="backLeave" MouseLeftButtonDown="sendMail" '
    strip_str += 'FontSize="14" FontFamily="Verdana" Canvas.Top="282" Canvas.Left="215" Opacity="1">carolina@concique.com</TextBlock>'
    strip_str += '</Canvas><Canvas Name="myScroller1_Container" Canvas.Top="0" Canvas.Left="480"> '
    strip_str += '<Canvas Name="myScroller1_Up" MouseLeftButtonDown="scrollerArrowPress" MouseLeftButtonUp="scrollerArrowRelease"> '
    strip_str += '<Rectangle Fill="#777" Width="20" Height="20" /> '
    strip_str += '<Path Data="M 0,0 L8,8 -8,8z" Fill="#EEE" Canvas.Left="10" Canvas.Top="7" />'
    strip_str += '</Canvas>'
    strip_str += '<Canvas Name="myScroller1_Down" MouseLeftButtonDown="scrollerArrowPress" MouseLeftButtonUp="scrollerArrowRelease" Canvas.Top="381" > '
    strip_str += '<Rectangle Fill="#777" Width="20" Height="20" /> '
    strip_str += '<Path Data="M 0,0 L8,-8 -8,-8z" Fill="#EEE" Canvas.Left="10" Canvas.Top="14" />'
    strip_str += '</Canvas>'
    strip_str += '<Rectangle Name="myScroller1_TrackBar_Visual" Fill="#AAA" Height="359" Width="20" Canvas.Top="21" /> '
    strip_str += '<Rectangle Name="myScroller1_TrackBar" MouseLeftButtonDown="pressTrackBar" Fill="transparent" Height="359" Width="20" Canvas.Top="22" /> '
    strip_str += '<Rectangle Name="myScroller1_Scrubber" MouseLeftButtonDown="startDrag" MouseLeftButtonUp="endDrag" Fill="#000" Height="50" Width="18" Canvas.Top="22" Canvas.Left="1" /> '
    strip_str += '</Canvas><Canvas Canvas.Left="0" Canvas.Top="0" IsHitTestVisible="False"><Rectangle  Fill="#FFFFF9D3" Height="400" Width="480" /><Canvas.OpacityMask><LinearGradientBrush  StartPoint="0,0" EndPoint="0,1">'
    strip_str += '<GradientStop Offset="0.5" Color="#00000000" /><GradientStop Offset="1" Color="#FF000000"  /></LinearGradientBrush></Canvas.OpacityMask></Canvas><Canvas.Clip><RectangleGeometry Rect="0, 0, 500, 400"/></Canvas.Clip></Canvas>'
    strip_str += '<Rectangle Width="500" Height="400" Stroke="#FF636363"></Rectangle>'
    strip_str += '<TextBlock Name="back" Cursor="Hand" MouseEnter="backEnter" MouseLeave="backLeave" MouseLeftButtonDown="backPress" Canvas.Top="400" Canvas.Left="0" FontSize="18">Back...</TextBlock>'
    strip_str += '<Image Name="villaPictures0" Opacity="1" Stretch="Fill" Source="" Canvas.Left="505" Canvas.Top="0" Width="500" Height="400" ></Image>'
    strip_str += '<Image Name="villaPictures1" Opacity="0" Stretch="Fill" Source="" Canvas.Left="505" Canvas.Top="0" Width="500" Height="400" ></Image>'
    strip_str += '<Canvas Name="stripHolder" Canvas.Left="150" Canvas.Top="'+topOfStrip+'">';	
	for(i=0;i<villaArr.length;i++) {
		tileHolder_left=stripObjsArr[i].x
		tileHolder_top=stripObjsArr[i].y
		tile_z=stripObjsArr[i].z
		tile_img_width=stripObjsArr[i].width
		tile_img_height=stripObjsArr[i].height
		scale_x=scale_y=stripObjsArr[i].scale
		center_x=stripObjsArr[i].center_x
		center_y=stripObjsArr[i].center_y
		strip_str += '<Canvas Name="striptile_'+i+'" Canvas.Left="'+tileHolder_left+'" Canvas.Top="'+tileHolder_top+'">'
		strip_str += '<Canvas Name="stripimgHolder_'+i+'"  >'
		strip_str += '<Image Cursor="Hand" Name="stripimg_'+i+'" Stretch="Fill" Width="'+tile_img_width+'" Height="'+tile_img_height+'" MouseEnter="striptileEnter" MouseLeftButtonUp="stripPress" MouseLeave="striptileLeave" Source="" />'
		strip_str += '</Canvas>'
		strip_str += '<Canvas.RenderTransform><ScaleTransform Name="stripst_'+i+'" ScaleX="'+scale_x+'" ScaleY="'+scale_y+'" CenterX="'+center_x+'" CenterY="'+center_y+'"/></Canvas.RenderTransform>'
		strip_str += '</Canvas>'	
		stripObjsArr[i].parent="striptile_"+i
		stripObjsArr[i].scaleTransform="stripst_"+i
	}
	strip_str += '</Canvas><Canvas.Resources><Storyboard Name="stripAnimP">'
	strip_str += '<DoubleAnimation Name="stripAnimDAP" Duration="0:0:2" Storyboard.TargetName="stripHolder" Storyboard.TargetProperty="(Canvas.Left)" '
	strip_str += 'To="'+(getWidth()-tileHolder_left-250)+'" />'
	strip_str += '</Storyboard><Storyboard Name="stripAnimN">'
	strip_str += '<DoubleAnimation Name="stripAnimDAN" Duration="0:0:2" Storyboard.TargetName="stripHolder" Storyboard.TargetProperty="(Canvas.Left)" To="100" />'
	strip_str += '</Storyboard>'
	strip_str += '<Storyboard Name="villaPictureSwap0" Completed="villaChange"><DoubleAnimation Storyboard.TargetName="villaPictures0" Storyboard.TargetProperty="Opacity" From="1.0" To="0" Duration="0:0:1" />'
    strip_str += '<DoubleAnimation Storyboard.TargetName="villaPictures1" Storyboard.TargetProperty="Opacity" From="0" To="1.0" Duration="0:0:1" /></Storyboard>'
    strip_str += '<Storyboard Name="villaPictureSwap1" Completed="villaChange"><DoubleAnimation Storyboard.TargetName="villaPictures0" Storyboard.TargetProperty="Opacity" From="0" To="1.0" Duration="0:0:1" />'
    strip_str += '<DoubleAnimation Storyboard.TargetName="villaPictures1" Storyboard.TargetProperty="Opacity" From="1.0" To="0" Duration="0:0:1" /></Storyboard></Canvas.Resources>'
	strip_str += '<Image Name="Prev" Canvas.Top="'+(topOfStrip+25)+'" Canvas.Left="25" Source="" MouseEnter="prevInN" MouseLeave="prevOutN" Width="50" Height="50" Opacity="0.8" />'
	strip_str += '<Image Name="Next" Canvas.Top="'+(topOfStrip+25)+'" Canvas.Left="'+(getWidth()-75)+'" Source="" MouseEnter="prevInP" MouseLeave="prevOutP" Width="50" Height="50" Opacity="0.8" />'
	strip_str += '</Canvas>';
	return strip_str;
}

function page44(){
	txtStr =  '<Canvas>' 
    txtStr += '<Canvas Name="boatMenu" Opacity="1">'
    txtStr += '<Image Name="boatNewPic" Opacity="1" Canvas.Top="0" Canvas.Left="505" Source="" Width="500" Height="450"></Image>'
    txtStr += '</Canvas>'
	txtStr += '<Canvas Name="boatPageContainer" Width="500" Height="450" Canvas.Top="0" Canvas.Left="0" Opacity="1" Background="#FFB3C8E6" >'
    txtStr += '<TextBlock Name="boatPage"></TextBlock>'
	txtStr += '<Canvas><Canvas Name="boatPageTextContainer"><TextBlock Name="contentText" Width="450" Height="450" Canvas.Top="10" Canvas.Left="10" TextWrapping="Wrap"><Run FontSize="20" FontFamily="Verdana">Charter</Run><LineBreak/><LineBreak/>'
    txtStr += 'Whether you are entertaining guests or just wish to spend some time away from it all, chartering a yacht from Concique will guarantee '
    txtStr += 'a time to be remembered by all.  With a choice of top of the range yachts, sailboats and powerboats, you are sure to find what you '
    txtStr += 'are looking for. Whether you are an experienced seaman looking for bareboat charter, or you wish to take advantage of our skippered '
    txtStr += 'or crewed vessels, Concique ensures a fantastic experience tailor made to your desires. So soak up the sunshine and cruise the ocean '
    txtStr += 'visiting destinations of your choice – relax and unwind or opt for adventure and excitement – you are truly the master of your own '
    txtStr += 'destiny. Please contact us to discuss your requirements – we will be happy to help you choose from the great range of yachts at our '
    txtStr += 'disposal and decide which charter is most suitable for your needs.<LineBreak/><LineBreak/>'
    txtStr += '<Run FontSize="18" FontFamily="Verdana">Bareboat Charter:</Run><LineBreak/><LineBreak/>'
    txtStr += 'For those experienced seaman with the required qualifications, bareboat charter is the ultimate in freedom. After choosing your '
    txtStr += 'vessel, our trained staff will brief you on safety and local knowledge of your proposed cruise. Our yachts come fully equipped '
    txtStr += 'with all you will need for comfort and practicality. At Concique, we are also able to provision the boat before you leave with your '
    txtStr += 'choice of items and deliver further provisions and service if you require.<LineBreak/><LineBreak/>'
    txtStr += '<Run FontSize="18" FontFamily="Verdana">Skippered Charter:</Run><LineBreak/><LineBreak/>'
    txtStr += 'If you like the idea of taking some time away from the rest of the world and totally relaxing whilst underway, then why not take '
    txtStr += 'advantage of the Skippered Charter from Concique.  This offers you the freedom of the Bareboat Charter without having to be concerned '
    txtStr += 'with piloting the yacht yourself. All of our Skippers have local knowledge, enhancing your holiday experience and are professional '
    txtStr += 'and discrete. Make the most of your holiday, see the sights from the comfort of one of our yachts – visit shore as and when you '
    txtStr += 'wish – but afterwards return to the tranquillity of your holiday home afloat in the most tranquil and elegant settings of Europe.'
    txtStr += '<LineBreak/><LineBreak/>'
    txtStr += '<Run FontSize="18" FontFamily="Verdana">Crew Charter:</Run><LineBreak/><LineBreak/>'
    txtStr += 'For larger parties or for those looking to entertain in grand style, why not take advantage of the Concique complete Crew Charter. '
    txtStr += 'Whether it is for one day or several months, Concique are able to provide larger yachts with a professional team to accompany you on '
    txtStr += 'the voyage of your choice. If you are looking for caterers, chefs, beauty or massage staff to accompany you in addition to the crew, '
    txtStr += 'for a special occasion or for the entire journey, Concique can provide skilled personnel to give you the ultimate service and '
    txtStr += 'experience. Please contact us to ensure you receive the very best available.'
    txtStr += '<LineBreak/><LineBreak/><LineBreak/><LineBreak/></TextBlock></Canvas>'
    txtStr += '<Canvas Name="myScroller1_Container" Canvas.Top="0" Canvas.Left="480"> '
    txtStr += '<Canvas Name="myScroller1_Up" MouseLeftButtonDown="scrollerArrowPress" MouseLeftButtonUp="scrollerArrowRelease"> '
    txtStr += '<Rectangle Fill="#777" Width="20" Height="20" /> '
    txtStr += '<Path Data="M 0,0 L8,8 -8,8z" Fill="#EEE" Canvas.Left="10" Canvas.Top="7" />'
    txtStr += '</Canvas>'
    txtStr += '<Canvas Name="myScroller1_Down" MouseLeftButtonDown="scrollerArrowPress" MouseLeftButtonUp="scrollerArrowRelease" Canvas.Top="431" > '
    txtStr += '<Rectangle Fill="#777" Width="20" Height="20" /> '
    txtStr += '<Path Data="M 0,0 L8,-8 -8,-8z" Fill="#EEE" Canvas.Left="10" Canvas.Top="14" />'
    txtStr += '</Canvas>'
    txtStr += '<Rectangle Name="myScroller1_TrackBar_Visual" Fill="#AAA" Height="409" Width="20" Canvas.Top="21" /> '
    txtStr += '<Rectangle Name="myScroller1_TrackBar" MouseLeftButtonDown="pressTrackBar" Fill="transparent" Height="409" Width="20" Canvas.Top="22" /> '
    txtStr += '<Rectangle Name="myScroller1_Scrubber" MouseLeftButtonDown="startDrag" MouseLeftButtonUp="endDrag" Fill="#000" Height="50" Width="18" Canvas.Top="22" Canvas.Left="1" /> '
    txtStr += '</Canvas><Canvas Canvas.Left="0" Canvas.Top="0"><Rectangle  Fill="#FFB3C8E6" Height="450" Width="480" /><Canvas.OpacityMask><LinearGradientBrush  StartPoint="0,0" EndPoint="0,1">'
    txtStr += '<GradientStop Offset="0.5" Color="#00000000" /><GradientStop Offset="1" Color="#FF000000"  /></LinearGradientBrush></Canvas.OpacityMask></Canvas>'
    txtStr += '<Canvas.Resources><Storyboard Name="boatPageOut" Completed="boatBack"><DoubleAnimation Storyboard.TargetName="boatPageContainer" Storyboard.TargetProperty="Opacity" From="1.0" To="0" Duration="0:0:1" />'
    txtStr += '<DoubleAnimation Storyboard.TargetName="boatNewPic" Storyboard.TargetProperty="Opacity" From="1.0" To="0" Duration="0:0:1" /></Storyboard>'
    txtStr += '<Storyboard Name="boatPageIn" Completed="boatIn"><DoubleAnimation Storyboard.TargetName="boatPageContainer" Storyboard.TargetProperty="Opacity" From="0" To="1.0" Duration="0:0:1" />'
    txtStr += '<DoubleAnimation Storyboard.TargetName="boatNewPic" Storyboard.TargetProperty="Opacity" From="0" To="1.0" Duration="0:0:1" /></Storyboard></Canvas.Resources>'
    txtStr += '<Rectangle Width="500" Height="450" Stroke="#FF636363"></Rectangle></Canvas>'
    txtStr += '<Canvas.Clip><RectangleGeometry Rect="0, 0, 500, 450"/></Canvas.Clip>'
    txtStr += '</Canvas><TextBlock Name="back" Cursor="Hand" MouseEnter="backEnter" MouseLeave="backLeave" MouseLeftButtonDown="backPress" FontSize="18" '
    txtStr += 'FontFamily="Verdana" Canvas.Top="460" Opacity="1">Back...</TextBlock></Canvas>'
	return txtStr;
}

function getText(i){
    var txtStr;
    switch(i){
    case(0):
        txtStr = '<Run FontSize="28" FontFamily="Eurostile">Concierge</Run><LineBreak/><LineBreak/>The ultimate in Concierge services to take care of your every need whilst you and your guests relax on your holiday. Dedicated to Concique clients, our concierge staff will take care of your every day needs or your requirements for the most special of occasions.';
        break;
    case(1):
        txtStr = '<Run FontSize="28" FontFamily="Eurostile">Yachts</Run><LineBreak/>For adding that extra luxury experience to your holiday, charter a yacht of your choice from Concique, we have a wide range available from sporting day cruisers to exquisite super yachts. For yacht owners, our colleagues at Repco Marine offer the highest standard of caretaking, service and gardiennage on the Cote d’Azur.';
        break;
    case(2):
        txtStr = '<Run FontSize="28" FontFamily="Eurostile">Villa</Run><LineBreak/><LineBreak/>For the discerning client we offer for rental a selection of exclusive villas in supreme locations with luxurious decoration and amenities. For villa owners, our colleagues at Repco Villas offer an unbeatable caretaking and maintenance service for your holiday home.';
        break;
    }
    return txtStr;
}

function conciergePages(i){
    var txtStr;
    switch(i){
    case("0"):
        txtStr =  '<Canvas><Canvas Name="conciergePageTextContainer"><TextBlock Name="contentText" Width="450" Height="450" Canvas.Top="10" Canvas.Left="10" TextWrapping="Wrap"><Run FontSize="20" FontFamily="Verdana">Entertainment</Run><LineBreak/><LineBreak/>'
        txtStr += 'The town of St Tropez and the surrounding area is alive with vibrant restaurants and bars for your pleasure. Allow our concierge to assist you with booking a table at some of the finest restaurants and nightclubs to ensure you don’t miss out on the best this area has to offer. If you prefer to relax at your villa or yacht, then it is our pleasure to help organize for you a choice of the finest foods and entertainment available, all at your home from home.'
        txtStr += '<LineBreak/><LineBreak/><LineBreak/><LineBreak/></TextBlock></Canvas>'
        break;
   case("1"):
        txtStr =  '<Canvas><Canvas Name="conciergePageTextContainer"><TextBlock Name="contentText" Width="450" Height="450" Canvas.Top="10" Canvas.Left="10" TextWrapping="Wrap"><Run FontSize="20" FontFamily="Verdana">Lifestyle</Run><LineBreak/><LineBreak/>'
        txtStr += 'After time spent relaxing at your villa or on your yacht, you may want to take some time to enjoy the activities available in the '
        txtStr += 'area. Whether it’s a round or two of golf, a day at the races, maybe some time sailing, diving or skiing, or even taking time to '
        txtStr += 'admire the many beautiful islands and coves along the coast aboard a power boat, allow us to help you with your plans. Alternatively, '
        txtStr += 'if relaxation is your absolute priority there are a number of indulgences which we can arrange directly for you in the comfort of '
        txtStr += 'your own villa or yacht, such as beauty and spa treatments, hairdressing and massage. Whatever you wish for, we are just a call away '
        txtStr += 'and will do the utmost to take care of your requirements.'
        txtStr += '<LineBreak/><LineBreak/><LineBreak/><LineBreak/></TextBlock></Canvas>'
        break;
    case("2"):
        txtStr =  '<Canvas Name="conciergePage"><Canvas Name="conciergePageTextContainer"><TextBlock Name="contentText" Width="450" Height="450" Canvas.Top="10" Canvas.Left="10" TextWrapping="Wrap"><Run FontSize="20" FontFamily="Verdana">Service</Run><LineBreak/><LineBreak/>'
        txtStr += 'Our ultimate goal is to ensure all your needs are catered for. Our concierge can offer advice and make arrangements to ensure your '
        txtStr += 'stay is one hundred percent stress free. Take advantage of a range of services such as food and drink provisioning, delivered to your '
        txtStr += 'villa or boat ready for your arrival or at any time during your stay. For families, we can assist with the arrangement of babysitting '
        txtStr += 'and nanny services. A complete maid service is available and we are able to organize catering staff and chefs for that special family '
        txtStr += 'meal or soirée with guests. Once again whatever you require, our concierge services are available to offer advice, organization and '
        txtStr += 'assistance.'
        txtStr += '<LineBreak/><LineBreak/><LineBreak/><LineBreak/></TextBlock></Canvas>'
        break;
   case("3"):
        txtStr =  '<Canvas><Canvas Name="conciergePageTextContainer"><TextBlock Name="contentText" Width="450" Height="450" Canvas.Top="10" Canvas.Left="10" TextWrapping="Wrap"><Run FontSize="20" FontFamily="Verdana">Transportation</Run><LineBreak/><LineBreak/>'
        txtStr += 'Travel in style, at speed or both with an unbeatable choice of yachts, limousines and aircraft to take you to your destination. It '
        txtStr += 'is equally our pleasure to assist you with day to day travel requirements such as helicopters, sea taxi, airline tickets and car '
        txtStr += 'rental. For example, on providing us with your arrival details a private limousine or motor launch can meet you at the airport, take '
        txtStr += 'care of your luggage and deliver you in comfort to your destination. So, remove the stress from your travel requirements and call us, '
        txtStr += 'the local knowledge of our team ensures that you arrive where and when you want with the greatest of ease and comfort.'
        txtStr += '<LineBreak/><LineBreak/><LineBreak/><LineBreak/></TextBlock></Canvas>'
        break;
    }
    txtStr += '<Canvas Name="myScroller1_Container" Canvas.Top="0" Canvas.Left="480"> '
    txtStr += '<Canvas Name="myScroller1_Up" MouseLeftButtonDown="scrollerArrowPress" MouseLeftButtonUp="scrollerArrowRelease"> '
    txtStr += '<Rectangle Fill="#777" Width="20" Height="20" /> '
    txtStr += '<Path Data="M 0,0 L8,8 -8,8z" Fill="#EEE" Canvas.Left="10" Canvas.Top="7" />'
    txtStr += '</Canvas>'
    txtStr += '<Canvas Name="myScroller1_Down" MouseLeftButtonDown="scrollerArrowPress" MouseLeftButtonUp="scrollerArrowRelease" Canvas.Top="431" > '
    txtStr += '<Rectangle Fill="#777" Width="20" Height="20" /> '
    txtStr += '<Path Data="M 0,0 L8,-8 -8,-8z" Fill="#EEE" Canvas.Left="10" Canvas.Top="14" />'
    txtStr += '</Canvas>'
    txtStr += '<Rectangle Name="myScroller1_TrackBar_Visual" Fill="#AAA" Height="409" Width="20" Canvas.Top="21" /> '
    txtStr += '<Rectangle Name="myScroller1_TrackBar" MouseLeftButtonDown="pressTrackBar" Fill="transparent" Height="409" Width="20" Canvas.Top="22" /> '
    txtStr += '<Rectangle Name="myScroller1_Scrubber" MouseLeftButtonDown="startDrag" MouseLeftButtonUp="endDrag" Fill="#000" Height="50" Width="18" Canvas.Top="22" Canvas.Left="1" /> '
    txtStr += '</Canvas><Canvas Canvas.Left="0" Canvas.Top="0"><Rectangle  Fill="#FFD1D4D3" Height="450" Width="480" /><Canvas.OpacityMask><LinearGradientBrush  StartPoint="0,0" EndPoint="0,1">'
    txtStr += '<GradientStop Offset="0.5" Color="#00000000" /><GradientStop Offset="1" Color="#FF000000"  /></LinearGradientBrush></Canvas.OpacityMask></Canvas>'
    txtStr += '<Canvas.Resources><Storyboard Name="conciergePageOut" Completed="concBack"><DoubleAnimation Storyboard.TargetName="conciergePageContainer" Storyboard.TargetProperty="Opacity" From="1.0" To="0" Duration="0:0:1" />'
    txtStr += '<DoubleAnimation Storyboard.TargetName="conciergeNewPic" Storyboard.TargetProperty="Opacity" From="1.0" To="0" Duration="0:0:1" /></Storyboard>'
    txtStr += '<Storyboard Name="conciergePageIn" Completed="concIn"><DoubleAnimation Storyboard.TargetName="conciergePageContainer" Storyboard.TargetProperty="Opacity" From="0" To="1.0" Duration="0:0:1" />'
    txtStr += '<DoubleAnimation Storyboard.TargetName="conciergeNewPic" Storyboard.TargetProperty="Opacity" From="0" To="1.0" Duration="0:0:1" /></Storyboard></Canvas.Resources>'
    txtStr += '</Canvas>'
    return txtStr 
}